package com.xinzhi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName applicant
 */
@TableName(value ="applicant")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Applicant implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer applicantId;

    /**
     * 
     */
    private String applicantAddress;

    /**
     * 
     */
    private String applicantName;

    /**
     * 
     */
    private String applicantRegion;

    /**
     * 
     */
    private String applicantTel;

    /**
     * 
     */
    private Integer pass;

    /**
     * 
     */
    private Integer remove;

    /**
     * 
     */
    private String store;

    private String password;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Applicant other = (Applicant) that;
        return (this.getApplicantId() == null ? other.getApplicantId() == null : this.getApplicantId().equals(other.getApplicantId()))
            && (this.getApplicantAddress() == null ? other.getApplicantAddress() == null : this.getApplicantAddress().equals(other.getApplicantAddress()))
            && (this.getApplicantName() == null ? other.getApplicantName() == null : this.getApplicantName().equals(other.getApplicantName()))
            && (this.getApplicantRegion() == null ? other.getApplicantRegion() == null : this.getApplicantRegion().equals(other.getApplicantRegion()))
            && (this.getApplicantTel() == null ? other.getApplicantTel() == null : this.getApplicantTel().equals(other.getApplicantTel()))
            && (this.getPass() == null ? other.getPass() == null : this.getPass().equals(other.getPass()))
            && (this.getRemove() == null ? other.getRemove() == null : this.getRemove().equals(other.getRemove()))
            && (this.getStore() == null ? other.getStore() == null : this.getStore().equals(other.getStore()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApplicantId() == null) ? 0 : getApplicantId().hashCode());
        result = prime * result + ((getApplicantAddress() == null) ? 0 : getApplicantAddress().hashCode());
        result = prime * result + ((getApplicantName() == null) ? 0 : getApplicantName().hashCode());
        result = prime * result + ((getApplicantRegion() == null) ? 0 : getApplicantRegion().hashCode());
        result = prime * result + ((getApplicantTel() == null) ? 0 : getApplicantTel().hashCode());
        result = prime * result + ((getPass() == null) ? 0 : getPass().hashCode());
        result = prime * result + ((getRemove() == null) ? 0 : getRemove().hashCode());
        result = prime * result + ((getStore() == null) ? 0 : getStore().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", applicantId=").append(applicantId);
        sb.append(", applicantAddress=").append(applicantAddress);
        sb.append(", applicantName=").append(applicantName);
        sb.append(", applicantRegion=").append(applicantRegion);
        sb.append(", applicantTel=").append(applicantTel);
        sb.append(", pass=").append(pass);
        sb.append(", remove=").append(remove);
        sb.append(", store=").append(store);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}